using System;
using System.Collections.Generic;
using System.Text;

namespace LispInterpretor.Parsers
{
    public class ValueParser : IParser
    {
        #region IParser Members

        public bool Is(string text, Environment environment)
        {
            return environment.Exists(text);
        }

        public object Evaluate(string text, Environment environment)
        {
            return environment.Get(text);
        }

        #endregion
    }
}
